{%include file="index.header.tpl.php"%}
{%include file="index.left.tpl.php"%}
  <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">
                <div class="box-header with-border">
                    <span class="fa fa-table" style="float:left; font-size:18px; margin-top:2px; color:#3c8dbc;" ></span>
                    <p class="box-title">教师值日表</p>
					{%if $is_update=="1"%}
                     <a href="index.php?a=duty.add" class="btn btn-warning btn-sm" style="float:right; color:#fff; margin-left:8px;">修 改</a>
					{%/if%}
                     <a href="index.php?a=duty.outdata" class="btn btn-primary btn-sm" style="float:right; color:#fff; margin-left:8px;">导 出</a>
                </div>
                <div class="box-body">
                    <h4 class="text-center">教师值日表{%if $start_time!=""%} (生效日期: {%$start_time%}){%/if%}</h4> 
                    <p>{%$semester_data.semester_name%}</p>
                      <table class="table table-bordered table-striped" id="mytable">   
                          <thead>
                             <tr>
                                <td rowspan="2">地点</td>
								{%foreach from=$week_lists key=key item=value%}
								<td colspan="2" align="center">{%$value%}</td>
								{%/foreach%}								
							 </tr>
                             <tr>
								{%foreach from=$week_lists key=key item=value%}								
                                <td>上午</td>
                                <td>下午</td>
								{%/foreach%}									
							 </tr>
                        </thead>
							 {%foreach from=$data_lists key=key item=value%}
                             <tr>
							    <td>{%$value.duty_area%}</td>
								{%foreach from=$value.duty_data key=k item=v%}
									{%foreach from=$v key=t item=s%}
									 <td>{%$s%}</td>
									{%/foreach%}
								{%/foreach%}    
							 </tr>
							 {%/foreach%}

						 </table>      	   
				    </div><!--box-body --> 
                    <div class="box-footer">
                        <a href="index.php?a=duty.list" class="btn btn-success" style="float:right;">往期教师值日表>></a>
                    </div>
             </div><!--box box-default box-solid-->
          </section>   
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
  {%include file="index.footer.tpl.php"%}

